﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.DAO.Cache.Comercios
{
    public class Comercio
    {
        public static ECommerce.Model.Comercios.Comercio GetComercioById(int Id)
        {
            return (ECommerce.Model.Comercios.Comercio)ECommerce.DAO.Cache.CacheHelper.GetObjetoById(Id);
        }

        public static ECommerce.Model.Comercios.Catálogo[] GetCatálogosByIdComercio(int ident)
        {
            throw new NotImplementedException();
        }

        public static int SetComercio(ECommerce.Model.Comercios.Comercio Comercio)
        {
            return ECommerce.DAO.Cache.CacheHelper.SetObjeto(Comercio);
        }

        public static int DelComercio(ECommerce.Model.Comercios.Comercio Comercio)
        {
            return ECommerce.DAO.Cache.CacheHelper.DelObjeto(Comercio);
        }
    }
}
